package fun.eliauk.treedemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import fun.eliauk.treedemo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    List<User> findAllByName(@Param("name") String name);

    //模糊匹配
    List<User> likeByPhone(@Param("phone") String partial, @Param("secretKey") String secretKey);
}

